import request from '@/utils/request'

// 查询采购供应商报价列表
export function listGybjGoods(query) {
  return request({
    url: '/caigou/gybjGoods/list',
    method: 'get',
    params: query
  })
}

// 查询采购供应商报价详细
export function getGybjGoods(id) {
  return request({
    url: '/caigou/gybjGoods/' + id,
    method: 'get'
  })
}
// 查询根据采购报价的单据编号查详细
export function getGybjGoodsByCodeBuySupCode(codeArr) {
  return request({
    url: '/caigou/gybjGoods/getByBuySupCode',
    method: 'post',
    data:codeArr
  })
}
// 新增采购供应商报价
export function addGybjGoods(data) {
  return request({
    url: '/caigou/gybjGoods',
    method: 'post',
    data: data
  })
}

// 修改采购供应商报价
export function updateGybjGoods(data) {
  return request({
    url: '/caigou/gybjGoods',
    method: 'put',
    data: data
  })
}

// 删除采购供应商报价
export function delGybjGoods(id) {
  return request({
    url: '/caigou/gybjGoods/' + id,
    method: 'delete'
  })
}
